/**
 * 
 */
package com.zhiteng.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

/**  
* <p>Title: Order.java</p>  
* <p>Description: 积分礼品兑换订单实体</p>  
* @author dragon  
* @date 2018年12月27日  
* @version 1.0  
*/
@Table(name="tb_order")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Order implements Serializable{
	@Id
	private Long id; //	订单id
	private String teacherId;	//	兑换积分礼品的教师id
	private Long itemId;	//	积分礼品id
	private String itemTitle;	//	积分礼品标题
	private String image;	//	积分礼品主图地址
	private Integer price;	//	付款积分数
	private String rule;	//	领取方式
	//@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
	private Date created;	//	订单创建时间
	private Integer status;	//	订单状态：0-未领取  1-已领取
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTeacherId() {
		return teacherId;
	}
	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}
	public Long getItemId() {
		return itemId;
	}
	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}
	public String getItemTitle() {
		return itemTitle;
	}
	public void setItemTitle(String itemTitle) {
		this.itemTitle = itemTitle;
	}
	public Integer getPrice() {
		return price;
	}
	public void setPrice(Integer price) {
		this.price = price;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getRule() {
		return rule;
	}
	public void setRule(String rule) {
		this.rule = rule;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	
}
